<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/5
  Time: 10:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%-- jsp 通过标签进行过滤
<shiro:hasRole name="admin">
    <a href="gotoAdmin.do">admin</a> <br><br>
</shiro:hasRole>
<shiro:hasRole name="student">
    <a href="/gotoUser.do">user</a><br><br>
</shiro:hasRole>--%>
    <a href="/gotoUser.do">user</a><br><br>
    <a href="gotoAdmin.do">admin</a> <br><br>
<a href="logout.do">登出</a><br><br>
</body>
</html>
